import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动类, 自动启动Tomact 容器.
 * @author Administrator
 *
 */
@SpringBootApplication
@ComponentScan("gx")
@MapperScan(basePackages = {"gx.*.mapper"})
@EnableAutoConfiguration
@EnableSwagger2
public class Application {

	@RequestMapping(value = "/start", method = RequestMethod.GET)
	@ResponseBody
	public String start() {
		return "你好，Spring Boot";
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		SpringApplication.run(Application.class, args);
	}

}
